﻿#include "secondmathimplabc2.h"
#include "tools/base_math_tools.h"
SecondMathImplABC2::SecondMathImplABC2(QObject *parent)
{

}

const QString SecondMathImplABC2::fun()
{
    QString tmp ;
    int num1 ,num2,num3;
    do{
     num1 = BaseMathTools::generateRandomNumber(3, 8);
     num2 = BaseMathTools::generateRandomNumber(3, 8);
     num3 = BaseMathTools::generateRandomNumber(10, 100);

    }while(num1 * num2 < num3);
   tmp = QString::number(num1) + " "+ STR_MULT_OPTION +" " +  QString::number(num2) + " - "+  QString::number(num3)+ " = ";
   return tmp;
}
